const http = uni.$u.http

// 首页
export const sendCode = (data) => {
	return http.get('/index.php', {params:data})
}

//注册
export const register = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/passport/register', data )
}

//获取用户信息
export const getUserInfo = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/user/user-info', {params:data})
}

//登录
export const login = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/passport/login', data )
}

//修改密码
export const forget = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/passport/forget-password', data )
}

